This is expected to happen on wayland and other platforms with no primary selection,
and just leads to the selected text being cleared after any attempt to change the
text selection itself through either mouse/keyboard.
if (gtk_editable_get_selection_bounds (GTK_EDITABLE (entry), &start, &end))
{
- if (!gtk_clipboard_set_with_owner (clipboard, targets, n_targets,
- primary_get_cb, primary_clear_cb, G_OBJECT (entry)))
- primary_clear_cb (clipboard, entry);
+ gtk_clipboard_set_with_owner (clipboard, targets, n_targets,
+ primary_get_cb, primary_clear_cb, G_OBJECT (entry));
}
else
{